package com.zretc.dao;

import com.zretc.entity.Salary;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 工资账套Mapper
 * @author wangxinghang
 */
@Mapper
@Repository
public interface SalaryMapper {

    /**
     * 添加工资账套
     * @param salary
     * @return
     */
    int addSalary(Salary salary);

    /**
     * 根据条件
     * 模糊查找所以的工资账套
     * @param map
     * @return
     */
    List<Salary> findAll(Map<String ,Object> map);


    /**
     * 修改工资账套
     * @param salary
     * @return
     */
    int updata(Salary salary);

    /**
     * 根据编码删除工资账套
     * @param SalaryId
     * @return
     */
    int delete(Integer SalaryId);


}
